package stegnos.tests;

import org.quark.stegnos.Encryption;

import processing.core.PApplet;
import processing.core.PImage;

public class EncryptImageTest extends PApplet {

	final String filepath = "steg/";

	PImage img_argb, img_rgb;
	String s0 = "mary had a little lamb its fleece as white a snow";
	String s1 = "mary had a little lamb its fleece as white a snow";
	
	public void setup(){
		size(900,600);
		background(200,200,255);
		img_argb = loadImage(filepath + "bdn_argb_m.gif");
		img_rgb = loadImage(filepath + "bdn_rgb_m.gif");
		
		
		
		
		image(img_argb,10,10);
		Encryption.encodeImage(s0, img_argb, ARGB);
		image(img_argb,310,10);
		Encryption.decodeImage(s0, img_argb, ARGB);
		image(img_argb,610,10);

		image(img_rgb,10,200);
		Encryption.encodeImage(s0, img_rgb, RGB);
		image(img_rgb,310,200);
		Encryption.decodeImage(s0, img_rgb, RGB);
		image(img_rgb,610,200);

	}
}
